﻿using Microsoft.Xna.Framework.Net;

namespace PoolGame2.Player
{
    public class PlayerAction
    {
        public enum PlayerActionType
        {
            ACTION_INVALID = 0,
            ACTION_STRIKE_BALL,
            ACTION_ROTATE,
            ACTION_BALL_POSITIONS,
            ACTION_CHAT,
        };

        PlayerActionType actionType = PlayerActionType.ACTION_INVALID;

        public PlayerAction(PlayerActionType type)
        {
            actionType = type;
        }

        public PlayerActionType GetActionType()
        {
            return actionType;
        }

        public virtual void Pack( PacketWriter output )
        {
            output.Write((int)actionType);
        }
    }
}
